<!DOCTYPE html>
<html lang="en" style="background:xxx;">
<head>
  <meta charset="UTF-8">
  <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
  <meta content="yes" name=" apple-mobile-web-app-capable" />
  <!-- 隐藏状态栏  -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  <!-- <title>个人中心</title> -->
  <link rel="stylesheet" href="css/common.css">
  <link rel="stylesheet" href="css/details.css">
</head>
<body>
<header class="per-center-head">
  <div class="wrapper clearfix">
    <div class="login_fl fl">
      <a href="index.html" class="login_icon"><img src="img/srh_icon.png" alt=""></a>
    </div>
  </div>
</header>
	<div class="per-center">
	    <div class="toper">
	    	<div class="user-head">
	    		<img src="img/head.png" alt="" id="avatar" onclick="updateProfile()">
	    	</div>
	        <a href="" id="userName" href="javascript:updateProfile()"></a>
	    </div>
	    <div class="nav">
	      <ul>
	        <a href="my-order.html" class="my-order">
	          <li class="">
	            <i></i>我的订单
	          </li>
	        </a>
	        <a href="about.html">
	          <li class="about-us">
	            <i></i>关于去嗨
	          </li>
	        </a>
	        <a href="coupon-record.html">
	          <li class="my-coupon">
	            <i></i>我的红包
	          </li>
	        </a>
	      </ul>
	    </div>
	</div>
</body>
<span style="display:none;"><script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1255764485'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1255764485%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script></span>
<script src="js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="js/constants.js"></script>
<script src="js/common.js"></script>
<script>
	var urlGetUserinfo = server_host + '/userweb/getUserInfo.do';
	var brandId = getParameterByName('brandId');
	if(brandId != '')
		sessionStorage.setItem('brandId', brandId);

	//是否订阅号，商户公众号入口判断，并存入session
	sessionStorage.setItem('isSubscribe', getParameterByName('isSubscribe') != '');

	$(document).ready(function(){
		$.ajax({
            type: 'POST',
            dataType: 'json',
            url: urlGetUserinfo,
            success: function(data) {
            	console.log(data);
                if (data.isUserLogin) {
                	$('#userName').html(data.data.name);
                	$('#avatar').attr('src', data.data && data.data.srcImg||'img/head.png');
                } else {
                    alert('请先登录！');
                    location.href = 'login.html?fr=pc';
                }
            }
        });
	});

	function updateProfile(){
		location.href = 'account-info.html';

	}

	//自动登录
	autoLogin();
</script>
<script>
    _maq.push(['_setMaq', 'per-center']);
</script>
</html>